package com.boxuegu.boxueguapiservice.service.impl;


import com.boxuegu.boxueguapiservice.dao.CourseMapper;
import com.boxuegu.boxueguapiservice.entity.Course;
import com.boxuegu.boxueguapiservice.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Vincent
 */
@Service("courseService")
public class CourseImpl implements CourseService {
  @Autowired
  private CourseMapper courseMapper;
  
  @Override
  public List<Course> findCourseAll() {
    return courseMapper.findCourseAll();
  }
  
  @Override
  public List<Course> findCourseByChapterId(int chapterId) {
    return courseMapper.findCourseByChapterId(chapterId);
  }
}
